<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"
	trimDirectiveWhitespaces="true"%>
<%@page import="java.util.Date"%>
<%@ include file="../admin.inc.jsp"%>

<div class="pageHeader">
	<form method="post" id="pagerForm" action="${webContextPath}/admin/companyInfo/list" onsubmit="return navTabSearch(this)">
	<input type="hidden" name="pageNum" id="pageNum" value="${pageInfo.pageNum}" />
	<input type="hidden" name="numPerPage" id="numPerPage" value="${pageInfo.numPerPage}"/>
	<div class="searchBar">
		
	</div>
	</form>
</div>
<div class="pageContent j-resizeGrid">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a iconClass="add" target="dialog" mask="true"
				width="430" height="500"
				href="${webContextPath}/admin/companyInfo/toAdd"><span>添加公司</span></a></li>
			
		</ul>
	</div>
	<div class="grid" layouth="65" style="width: 1149px; overflow: auto;">
	<table class="table" width="100%">
		<thead>
			<tr>
				<th width="40">ID</th>
				<th width="70">公司编号</th>
				<th width="120">公司名称</th>
				<th width="30">操作</th>
			</tr>
		</thead>
		<tbody style="text-align:center">
			<c:forEach var="item" items="${list}">
				<tr target="companyId" rel="${item.id}" style="">
					<td>${item.id}</td>
					<td>${item.companyCode}</td>
					<td>${item.name}</td>
					<td>
					<a title="编辑" target="dialog" href="${webContextPath}/admin/companyInfo/toEdit?id=${item.id}"
						 mask="true" class="btnEdit" width="430" height="500">编辑</a>
					<a title="删除" target="ajaxTodo" href="${webContextPath}/admin/companyInfo/deleteSingle?id=${item.id}" class="btnDel">删除</a>
					</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	</div>
	<div class="panelBar" style="bottom:0px">
		<div class="pages">			
			<span>共${size}条</span>
		</div>
		<div class="pagination" targettype="navTab" totalcount="${size}" 
		numperpage="${pageInfo.numPerPage}" pagenumshown="10" currentpage="${pageInfo.pageNum}">
		</div>
	</div>
</div>